package com.tcoiss.datafactory.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tcoiss.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * OA同步星空映射对象 oa_k3_mapping
 * 
 * @author zw
 * @date 2021-05-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("oa_k3_mapping")
public class OaK3Mapping implements Serializable {

private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** OA表单标识 */
    @Excel(name = "OA表单标识")
    private String oaFormId;

    /** OA表单名称 */
    @Excel(name = "OA表单名称")
    private String oaFormName;

    /** 星空表单标识 */
    @Excel(name = "星空表单标识")
    private String k3FormId;

    /** 星空表单名称*/
    @Excel(name = "星空表单名称")
    private String k3FormName;

    /** 字段映射表 */
    @Excel(name = "字段映射表")
    private String tableName;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private Integer dataLevel;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
